package com.service.system;

import com.domain.system.Module;
import com.domain.system.Role;
import com.domain.system.User;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface UserService {

    PageInfo findAll(String companyId, Integer page, Integer size);

    Integer save(User user) throws Exception;

    Integer update(User user);

    User findById(String id);

    Integer delete(String id);

    List<User> findAll(String companyId);

    Integer updateRole(String userId, String oldRoleIds);

    User findByEmail(String email);

}
